import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './element-variables.scss'
import htmlToPdf from '@/utils/htmlToPdf'
import JsonExcel from 'vue-json-excel'
import Print from 'vue-print-nb'
import * as filters from '@/filters' // 引入工具类
import fabric from 'fabric'
import mixinsAll from "@/mixins/all.js"
import dragSelect from 'ty-drag-select'
import vueDragSelectPro from 'vue-drag-select-pro'
import 'vue-drag-select-pro/lib/vueDragSelectPro.css'

Object.keys(filters).forEach(key => {
  // 注册过滤器
  Vue.filter(key, filters[key])
})

Vue.mixin(mixinsAll)
Vue.component('downloadExcel', JsonExcel)
Vue.use(fabric);
Vue.use(htmlToPdf);
Vue.use(ElementUI);
Vue.use(Print);
Vue.use(dragSelect)
Vue.use(vueDragSelectPro)
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
